home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / pgm_tool / lu62 / proc / toup.c < prev   
C/C++ Source or Header  |  1995-07-03  |  318b  |  18 lines

  1. /*
  2.  * Convert lower case to upper case.
  3.  *
  4.  * Input : pointer to string (with 0x00 on end).
  5.  * Output: all char.s in string convert to upper case.
  6.  */
  7. toup(p)
  8. char *p;
  9. {
  10.     while (*p != 0x00) {
  11.         if ((*p > 96)&&(*p < 123)) {
  12.             *p -= 32;
  13.         }
  14.         p++;
  15.     }
  16.     return (0);
  17. }
  18.